//
//  TROrderTableViewCell.m
//  WeiMiLan
//
//  Created by anan on 15/8/7.
//  Copyright (c) 2015年 Mac. All rights reserved.
//

#import "TROrderTableViewCell.h"

@implementation TROrderTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setInfo:(NSDictionary *)info {
    _info = info;
    self.labelId.text = [NSString stringWithFormat:@"订单号：%@",info[@"ID"]];
   // self.labelStatus.text = [NSString stringWithFormat:@"订单状态：%@",info[@"STATUS"]];
    self.labelTime.text = info[@"CREATEDATE"];
    
    NSString *name = @"";
    NSArray *arr = self.info[@"ORDER_ITEM"];
    for (NSDictionary *dic in arr) {
        name = [NSString stringWithFormat:@"%@%@",name,[dic ql_stringForKey:@"DESCRIPTION"]];
    }
    self.labelName.text = name;
}

- (NSInteger)getHeight {
    return 68;
}

@end
